<div class="deal-content" style="background-image:url('{$image}')">
    <div style="width: 1200px;">
        <div class="splitcontent">
            {$subName}
        </div>
    </div>
</div>
<div class="boxone">
<div class="detail-container">
    <div class="detail-content">
        <div class="detail-header">
            <h1 class="detail-title">{$detail.title}</h1>
            <div class="detail-meta">
                <span class="detail-category">{$detail.cate_title}</span>
                <span class="detail-time">{$detail.createtime}</span>
                <span class="detail-views">浏览量：{$detail.view}</span>
            </div>
        </div>
        
        <div class="detail-body">
            {$detail.content}
        </div>
        

    </div>
    
    <!-- 相关文章 -->
    {if $relatedList}
    <div class="related-articles">
        <h3 class="related-title">相关内容</h3>
        <div class="related-list">
            {volist name="relatedList" id="related"}
            <div class="related-item" onclick="goToDetail({$related.id})">
                <h4 class="related-item-title">{$related.title}</h4>
                <div class="related-item-meta">
                    <span class="related-item-views">浏览量：{$related.view}</span>
                    <span class="related-item-time">{$related.createtime}</span>
                </div>
            </div>
            {/volist}
        </div>
    </div>
    {/if}
</div>
</div>

<script>
    function goToDetail(id) {
        location.href = '{:url("index/lt_detail")}?id=' + id;
    }


</script>

<style>
    .boxone {
        width: 100%;
        padding: 40px 0;
        background: rgba(235, 238, 241, 1);
    }
    .detail-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
        background: #fff;
    }
    
    .detail-content {
        margin-bottom: 40px;
    }
    
    .detail-header {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }
    
    .detail-title {
        font-size: 32px;
        font-weight: bold;
        color: #333;
        margin: 0 0 15px 0;
        line-height: 1.4;
    }
    
    .detail-meta {
        display: flex;
        align-items: center;
        gap: 20px;
        color: #666;
        font-size: 14px;
    }
    
    .detail-category {
        background: linear-gradient(45deg, #4CB68F, #1F5CDA);
        color: white;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 12px;
    }
    
    .detail-body {
        font-size: 16px;
        line-height: 1.8;
        color: #333;
        margin-bottom: 30px;
    }
    
    .detail-body p {
        margin-bottom: 15px;
    }
    
    .detail-body img {
        max-width: 100%;
        height: auto;
        margin: 15px 0;
    }
    
    .detail-footer {
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    .detail-actions {
        display: flex;
        gap: 15px;
    }
    
    .btn-like, .btn-share {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border: 1px solid #ddd;
        background: white;
        color: #666;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .btn-like:hover, .btn-share:hover {
        background: #f5f5f5;
        border-color: #ccc;
    }
    
    .related-articles {
        background: #f8f9fa;
        padding: 30px;
        border-radius: 8px;
    }
    
    .related-title {
        font-size: 24px;
        font-weight: bold;
        color: #333;
        margin: 0 0 20px 0;
    }
    
    .related-list {
        display: grid;
        gap: 15px;
    }
    
    .related-item {
        background: white;
        padding: 20px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s;
        border: 1px solid #eee;
    }
    
    .related-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    
    .related-item-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 10px 0;
        line-height: 1.4;
    }
    
    .related-item-meta {
        display: flex;
        gap: 15px;
        color: #666;
        font-size: 12px;
    }
    
    .deal-content {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 60px 0;
        text-align: center;
    }
    
    .splitcontent {
        font-size: 48px;
        font-weight: bold;
        color: white;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
</style>